--
-- DESCRIPTION
--
-- @COMPANY **
-- @AUTHOR **
-- @DATE ${date} ${time}
--

-- require("UnLuaDebug")

---@type BP_Samurai_Player_C
local M = UnLua.Class("Draw.Blueprints.BP_Samurai")

local GameplayStatics = UE.UGameplayStatics

-- function M:Initialize(Initializer)
-- end

-- function M:UserConstructionScript()
-- end

function M:ReceiveBeginPlay()
    self.Super.ReceiveBeginPlay(self)
    ---- self.Overridden.ReceiveBeginPlay(self)
    local Camera = GameplayStatics.GetActorOfClass(self, UE.ACameraActor)
    local playerController = GameplayStatics.GetPlayerController(self, 0)
    playerController:SetViewTargetWithBlend(Camera)

end

-- function M:ReceiveEndPlay()
-- end

--function M:ReceiveTick(DeltaSeconds)
--end

-- function M:ReceiveAnyDamage(Damage, DamageType, InstigatedBy, DamageCauser)
-- end

-- function M:ReceiveActorBeginOverlap(OtherActor)
-- end

-- function M:ReceiveActorEndOverlap(OtherActor)
-- end


---攻击按下
function M:AttackPressed()
    self:Attack()
end

---攻击松开
--function M:AttackReleased()
--
--end

return M
